package cn.edu.ctbu.dp01.controller;

import org.springframework.ui.Model; // 修改此行，导入正确的 Model 类
import cn.edu.ctbu.dp01.entity.teacher;
import cn.edu.ctbu.dp01.service.teacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/teacher")
public class teacherController {
    @Autowired
    private teacherService teacherService;

    @GetMapping("/list")
    public String getList() {


        return "teacher/list";
    }
}
